package com.fly.msg;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author frinder
 * @date 2018/6/1
 * @Description: ${todo}
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private WebSocketService webSocketService;

    @GetMapping("/send")
    public String send() {
        webSocketService.send(new WiselyResponse("hello world..."));
        return "successfully";
    }

}
